package com.hrm.dao;

import com.hrm.model.HrmStaff;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface HrmStaffMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(HrmStaff record);

    int insertSelective(HrmStaff record);

    HrmStaff selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(HrmStaff record);

    int updateByPrimaryKeyWithBLOBs(HrmStaff record);

    int updateByPrimaryKey(HrmStaff record);

    /**
     *
     * @Title: getPageByMap
     * @Description: 分页查找数据
     * @param param
     * @return List<T>
     */
    List<HrmStaff> getPageByMap(Map<String, Object> param);

    /**
     *
     * @Title: getPageNumByMap
     * @Description: 获取总记录数（通常与getPageByMap一起使用）
     * @param param
     * @return int
     */
    int getPageNumByMap(Map<String, Object> param);

    int deleteByStaff(Integer id);
}